package ylzy.com.yanglezhiyang;

import android.app.Service;
import android.content.Context;
import android.os.Vibrator;

/**
 * @author ：create by sean
 * 创建日期：2022/9/24 15
 */
public class VibratorUtil {
    private static Vibrator vibrator;

    public static void init(Context context) {
        vibrator = (Vibrator) context.getSystemService(Service.VIBRATOR_SERVICE);
    }

    public static void vibrate() {
        vibrator.vibrate(100);
    }

}
